Revert "LevelBar: Avoid unnecessarily copying allocation"
authorMatthias Clasen <mclasen@redhat.com>
Sat, 12 Aug 2017 13:46:06 +0000 (09:46 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Aug 2017 13:46:06 +0000 (09:46 -0400)
This reverts commit d5e25be9bcd6c1a9db74ee749fa8808ba55a5ca5.

It doesn't build.

gtk/gtklevelbar.c

index ac42442accbf1c3774751ef587eef538ed39525e..5092b0908051e0867f861489451246e031a4a779 100644 (file)
@@ -434,8 +434,9 @@ gtk_level_bar_allocate_trough_continuous (GtkLevelBar *self,
   inverted = gtk_level_bar_get_real_inverted (self);
 
   /* allocate the empty (unfilled) part */
+  block_area = *allocation;
   gtk_widget_size_allocate (self->priv->block_widget[inverted ? 0 : 1],
-                            allocation
+                            &block_area,
                             baseline,
                             out_clip);